<?php

class Department_model extends CI_Model 
{
    function __construct()
    {
        parent::__construct();
    }
	
	function get_departments()
	{
		$this->db->from('department');
		
		$query = $this->db->get();
		
		return $query->result();
	}
}